import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
// 假设这里路径有误，根据实际情况修改
import Home from '../pages/Home'; 
import About from '../pages/About';

const AppRoutes = () => (
  <Router>
    <Routes>
      <Route path="/" element={<Home />} />
      <Route path="/about" element={<About />} />
    </Routes>
  </Router>
);

export default AppRoutes;